package com.gt.threadlocal;
import com.alibaba.fastjson.JSONObject;

public class RequestMapHolder {

    private static ThreadLocal<JSONObject> requestMapJson = new ThreadLocal<>();


    public static void setRequestMapJson(JSONObject reqJson) {
        requestMapJson.set(reqJson);
    }
    public static JSONObject getRequestMapJson() {
        return requestMapJson.get();
    }
    public static void removeRequestMapJson() {
        requestMapJson.remove();
    }
}
